<div class="m-login">
    <div class="g-hd" style="">
        <div class="g-fluid head">
            <div class="g-xs4" ng-bind-html="back"></div>
            <div class="g-xs4"><div class="tt">登录</div></div>
            <div class="g-xs4 f-tar" ng-bind-html="next"></div>
        </div>
    </div>
    <div class="g-ct">
        <!--<h1 class="u-title">用户登录</h1>-->
        <form name="js_form" type="post"  class="m-form" novalidate ng-submit="loginForm()">
            <div class="formitm f-cb">
                <label class="lab"><i class="icon-font" title="账号">&#xe624;</i></label>
                <div class="mn">
                    <div class="mnc">
                        <input type="text" name="account" class="input" placeholder="请输入手机号码" ng-model="user.account" required ng-pattern="/^1[3|5|8|7]\d{9}/" ng-minlength="3" ng-maxlength="20"/>
                        <div class="error" ng-show="js_form.account.$dirty && js_form.account.$invalid">
                            <small class="error" ng-show="js_form.account.$error.required">
                                账号为必填项.
                            </small>
                            <small class="error" ng-show="js_form.account.$error.minlength">
                                账号名称至少为三个字符.
                            </small>
                            <small class="error" ng-show="js_form.account.$error.maxlength">
                                账号名称不能超过20个字符.
                            </small>
                            <small class="error" ng-show="js_form.account.$error.pattern">
                                手机号码不正确.
                            </small>
                        </div>
                    </div>
                </div>
            </div>
            <div class="formitm f-cb">
                <label class="lab"><i class="icon-font" title="密码">&#xe625;</i></label>
                <div class="mn">
                    <div class="mnc">
                        <input type="password" name="password" class="input" placeholder="密码" ng-model="user.password" required  ng-minlength="3" ng-maxlength="20"/>
                        <div class="error" ng-show="js_form.password.$dirty && js_form.password.$invalid">
                            <small class="error" ng-show="js_form.password.$error.required">
                                密码为必填项.
                            </small>
                            <small class="error" ng-show="js_form.password.$error.minlength">
                                密码长度至少为三个字符.
                            </small>
                            <small class="error" ng-show="js_form.password.$error.maxlength">
                                密码长度不能超过20个字符.
                            </small>
                        </div>
                        <div class="error" ng-show="hasError" ng-bind-html="hasError"></div>
                    </div>
                </div>
            </div>
            <div class="formitm">
                <div class="btn"><button type="submit" ng-disabled="!js_form.account.$dirty || js_form.account.$invalid || !js_form.password.$dirty || js_form.password.$invalid"><span>立即登录</span></button></div>
            </div>
            <div class="formitm f-cb">
                <div class="mn">
                    <div class="mnc" style="margin-left:1.5rem">
                        <div class="g-xs6 link"><a href="#/mobile">手机验证码登陆</a></div>
                        <div class="g-xs6 link f-tar"><a href="javascript:;" ng-click="js_mobile()">忘记密码？</a></div>
                    </div>
                </div>
            </div>
            <div class="formitm">
                <div class="btn s-gay"><button type="button" ng-click="js_reg()"><span>注册</span></button></div>
            </div>
        </form>
    </div>
</div>